package com.qire.common.model.enumeration;

/**
 * APP涉及的奖励类型枚举，目前只有金豆和会员
 */
public enum RewardType {
    Bean,
    Vip;

    public static RewardType build(String typeName) {
        switch (typeName) {
            case "bean" : return Bean;
            case "vip" : return Vip;
        }
        return null;
    }

    public static RewardType build(int type) {
        //1-金豆 2-会员
        switch (type) {
            case 1 : return Bean;
            case 2 : return Vip;
        }
        return null;
    }
}
